﻿using Lanbt.Core.Entity.Enums;
using System.ComponentModel.DataAnnotations;

namespace Lanbt.Core.Entity.Dto.lanbt_system_config
{
    /// <summary>
    /// 系统配置基础入参
    /// </summary>
    public class ConfigInputDto
    {
        /// <summary>
        /// 配置键
        /// </summary>
        [Range(0, int.MaxValue, ErrorMessage = "配置键输入不合法")]
        public SystemConfigKey SystemKey { get; set; }

        /// <summary>
        /// 配置键
        /// </summary>
        [Range(0, int.MaxValue, ErrorMessage = "配置键输入不合法")]
        public UserConfigKey UserKey { get; set; }

        /// <summary>
        /// 配置
        /// </summary>
        public string value { get; set; }
    }
}
